for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
class Stack {
// put your code here to address problems
constructor() {
this.data = [];
}
push(record) {
this.data.push(record);
pop() {
return this.data.pop();
top() {
return this.data[this.data.length - 1];
isEmpty() {
return this.data.length === 0
module.exports = Stack;